# No additional display strings are needed for this question.
class Aircraft:
    def __init__(self, aircraft_type, max_passengers):
        """
        Constructor, used to initialize the aircraft object and handle the aircraft type
        """
        self.aircraft_type = aircraft_type.strip().title()
        self.max_passengers = max_passengers
        self.all_passengers = []  

    def add_passenger(self, first_name, last_name, seat_number, ticket_type):
        """
        Methods for adding passengers to an aircraft
        """
        passenger = Passenger(first_name, last_name, seat_number, ticket_type)
        self.all_passengers.append(passenger)
        return True
        return True
        
    def remove_passenger(self, first_name, last_name, seat_number):
        """
        Methods used to remove passengers from an aircraft
        """
        for passenger in self.all_passengers:
            if passenger.first_name == first_name and passenger.last_name == last_name and passenger.seat_number == seat_number:
               self.all_passengers.remove(passenger)
               return True
        return False

    def __str__(self):
        """
        Returns the description string of all passengers on the plane
        """
        print("The plane contains the following passengers:")
        passenger_info = ""
        for passenger in self.all_passengers:
            print(f"{passenger.first_name.title()} {passenger.last_name.title()} is in seat {passenger.seat_number}")
        return passenger_info


class Passenger:
    """
    This is a class that represents passengers.
    """
    def __init__(self, first_name, last_name, seat_number, ticket_type):
        """
        constructor
        """
        self.first_name = first_name.strip().title()
        self.last_name = last_name.strip().title()
        self.seat_number = seat_number
        self.ticket_type = ticket_type

    def __str__(self):
        """
        Return passenger description string
        """
        return f"{self.first_name.title()} {self.last_name.title()} is in seat {self.seat_number} in {self.ticket_type} class."

